package com.woniu.adopt.mapper;

import com.woniu.adopt.entity.Team;
import com.woniu.adopt.vo.TeamVo;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TeamMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TeamVo record);

    Team selectByPrimaryKey(Integer id);

    List<Team> selectAll();

    int updateByPrimaryKey(TeamVo record);

    /**
     * 查询所有的团队信息
     * @param name manager的name或者username
     * @return 所有团队信息
     */
    List<TeamVo> selectTeamByName(String name);

    List<TeamVo> selectTeamOldByName(String name);
}